From: Paul Donald Date: Wed, 27 Mar 2024 18:22:03 +0000 (+0100) Subject: luci-base: drive-by fixes X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=0ecb5edba8240c38e513bc10ba558041ec275f3a;p=project%2Fluci.git luci-base: drive-by fixes Signed-off-by: Paul Donald --- diff --git a/modules/luci-base/htdocs/luci-static/resources/form.js b/modules/luci-base/htdocs/luci-static/resources/form.js index 81b1054660..70aad7ee7d 100644 --- a/modules/luci-base/htdocs/luci-static/resources/form.js +++ b/modules/luci-base/htdocs/luci-static/resources/form.js @@ -1007,14 +1007,14 @@ var CBIAbstractSection = CBIAbstractElement.extend(/** @lends LuCI.form.Abstract * * @throws {TypeError} * Throws a `TypeError` exception in case the passed class value is not a - * descendent of `AbstractValue`. + * descendant of `AbstractValue`. * * @returns {LuCI.form.AbstractValue} * Returns the instantiated option class instance. */ option: function(cbiClass /*, ... */) { if (!CBIAbstractValue.isSubclass(cbiClass)) - throw L.error('TypeError', 'Class must be a descendent of CBIAbstractValue'); + throw L.error('TypeError', 'Class must be a descendant of CBIAbstractValue'); var obj = cbiClass.instantiate(this.varargs(arguments, 1, this.map, this)); this.append(obj); @@ -1044,7 +1044,7 @@ var CBIAbstractSection = CBIAbstractElement.extend(/** @lends LuCI.form.Abstract * * @throws {TypeError} * Throws a `TypeError` exception in case the passed class value is not a - * descendent of `AbstractValue`. + * descendant of `AbstractValue`. * * @returns {LuCI.form.AbstractValue} * Returns the instantiated option class instance.